<?php
include_once '../../../Core/Conexion.php';
include_once '../../../Core/Controlador.php';
include_once '../../../Core/InterfazDatos.php';
include_once '../../entidades/Curso.php';

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Crear
 *
 * @author cHr15t14n
 */
class Crear extends Controlador {

    function __construct() {
        parent::__construct();
    }

    public function ejecutar() {
        $entidad = new Curso(0, $_POST['idInstitucion'], $_POST['nombre'], $_POST['nivel'], $_POST['promedio']);
                //0, $_POST['fechaInicio'], $_POST['fechaFin'], $_POST['estado'], $_POST['observacion']);
        $this->conexion->grabar($entidad);
        header("Location: ../lista.php");
    }

//put your code here
}

$controlador = new Crear();
$controlador->ejecutar();




